﻿using System;
using Windows.UI.Xaml.Data;

namespace Smile.Xaml.Converter
{
    /// <summary>String to upper converter.</summary>
    public class StringToUpperConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            string givenString = "-1";
            if (value is string)
            {
                givenString = (string)value;
                givenString = givenString.ToUpper();
            }
            return givenString;
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
